﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Core.Interfaces.IPresenters;

namespace Core.Views
{
    public partial class PrivatePirsonView : Form, IPrivatePersonView
    {
        public PrivatePirsonView()
        {
            InitializeComponent();
        }

        public BindingSource PrivatePirson
        {
            get { return bindingSource1; }
            set { bindingSource1 = value; }
        }

        public event EventHandler SaveCustomer;

        private void button1_Click(object sender, EventArgs e)
        {
            if (SaveCustomer != null)
            {
                SaveCustomer(this, null);
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }

    }
}
